home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 March / PCWMAR09.iso / Software / Freeware / Adobe Media Player 1.6 / adobe_media_player.air / AMP.swf / scripts / _tabPanelTabStyle.as < prev    next >
Encoding:
Text File  |  2008-11-25  |  2.0 KB  |  58 lines

  1. package
  2. {
  3.    import com.adobe.amp.components.tabs.TabSkin;
  4.    import com.adobe.amp.components.tabs.TabSkinDisabled;
  5.    import com.adobe.amp.components.tabs.TabSkinSelected;
  6.    import mx.core.IFlexModuleFactory;
  7.    import mx.styles.CSSStyleDeclaration;
  8.    import mx.styles.StyleManager;
  9.    
  10.    public class _tabPanelTabStyle
  11.    {
  12.       public function _tabPanelTabStyle()
  13.       {
  14.          super();
  15.       }
  16.       
  17.       public static function init(param1:IFlexModuleFactory) : void
  18.       {
  19.          var fbs:IFlexModuleFactory = param1;
  20.          var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".tabPanelTab");
  21.          if(!style)
  22.          {
  23.             style = new CSSStyleDeclaration();
  24.             StyleManager.setStyleDeclaration(".tabPanelTab",style,false);
  25.          }
  26.          if(style.defaultFactory == null)
  27.          {
  28.             style.defaultFactory = function():void
  29.             {
  30.                this.fillColor = 16777215;
  31.                this.outlineColor = 0;
  32.                this.upSkin = TabSkin;
  33.                this.disabledOutlineAlpha = 0.05;
  34.                this.overSkin = TabSkin;
  35.                this.outlineAlpha = 0.7;
  36.                this.disabledOutlineColor = 0;
  37.                this.selectedOutlineColor = 0;
  38.                this.disabledInlineColor = 16777215;
  39.                this.disabledInlineAlpha = 0.05;
  40.                this.inlineAlpha = 0.14;
  41.                this.selectedDownSkin = TabSkinSelected;
  42.                this.fillAlpha = 0.1;
  43.                this.selectedUpSkin = TabSkinSelected;
  44.                this.selectedOverSkin = TabSkinSelected;
  45.                this.downSkin = TabSkin;
  46.                this.disabledFillAlpha = 0.1;
  47.                this.disabledSkin = TabSkinDisabled;
  48.                this.backgroundColor = 5329234;
  49.                this.selectedOutlineAlpha = 0.1;
  50.                this.disabledFillColor = 16777215;
  51.                this.inlineColor = 16777215;
  52.             };
  53.          }
  54.       }
  55.    }
  56. }
  57.  
  58.